package com.bdqn.crm.pojo;

import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2021-12-16 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="sys_right" )
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})
public class SysRight implements Serializable {

	private static final long serialVersionUID =  7062016901018679932L;

	@Id
   	@Column(name = "right_code" )
	private String rightCode;

   	@Column(name = "right_parent_code" )
	private String rightParentCode;

   	@Column(name = "right_type" )
	private String rightType;

   	@Column(name = "right_text" )
	private String rightText;

   	@Column(name = "right_url" )
	private String rightUrl;

   	@Column(name = "right_tip" )
	private String rightTip;

	/*//多对多
	@ManyToMany(targetEntity = SysRole.class,mappedBy = "rights")
	@JsonIgnore //转JSON忽略
	private Set<SysRole> roles = new HashSet<SysRole>(0);
*/
}
